package view;

import javax.swing.JFrame;
import javax.swing.JPanel;

import sun.security.util.PendingException;

public class FramePrincipal extends JFrame{

	private static final long serialVersionUID = 1L;

	PainelPrincipal panelPrincpal;
	
	public FramePrincipal()
	{
		criarFrame();
		criarPainelPrincipal();				
	}

	private void criarFrame() {

		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setTitle("CONTROLE DE DESPESAS");
		this.setSize(800,600);
		this.setVisible(true);	
		this.setLocationRelativeTo(null);
	}

	private void criarPainelPrincipal() {
		panelPrincpal = new PainelPrincipal();
		panelPrincpal.setBounds(0, 558, 776, -537);
		panelPrincpal.setLayout(null);
		getContentPane().add(panelPrincpal);
	}

	
}
